Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid reloading the map when the theme or selected map changes #47

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

Tschonti
Copy link
Collaborator

I know I didn't have this task, but I realized this might be possible, and afaik, we didn't assign this to anyone, since we weren't sure it was possible. Well, it is, and it's not even that painful. We just have to avoid recreating the whole map when some inner state changes, instead we have to apply the change on the current map.

Copy link

netlify bot commented Nov 19, 2024

Deploy Preview for wfp-hungermap ready!

Name Link
🔨 Latest commit c105832
🔍 Latest deploy log https://app.netlify.com/sites/wfp-hungermap/deploys/673cf8c104b7a4000824235a
😎 Deploy Preview https://deploy-preview-47--wfp-hungermap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@Lukas0912 Lukas0912 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, works great!

@marinovl7 marinovl7 merged commit 7fa061b into main Nov 20, 2024
5 checks passed
@marinovl7 marinovl7 deleted the feature/optimize-map-changes branch November 20, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants